home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20000217-20000824 / 000225_news@columbia.edu _Tue Apr 25 12:36:38 2000.msg < prev    next >
Internet Message Format  |  2000-08-23  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id MAA16682
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 25 Apr 2000 12:36:38 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA24087
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 25 Apr 2000 12:36:37 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id MAA15383
  10.     for kermit.misc@watsun.cc.columbia.edu; Tue, 25 Apr 2000 12:30:21 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: dat_thuc_nguyen@my-deja.com
  13. Subject: A Primitive C-Kermit Script Debugger
  14. Date: Tue, 25 Apr 2000 16:22:18 GMT
  15. Organization: Deja.com - Before you buy.
  16. Message-ID: <8e4gne$f2k$1@nnrp1.deja.com>
  17. To: kermit.misc@columbia.edu
  18.  
  19. The following macro provides a very primitive kind of debugger for C-
  20. Kermit script. Insert the macro 'debug' in the C-Kermit script wherever
  21. you want to set a break point, it returns the prompt 'debug>' and you
  22. regain the interactive control of C-Kermit until you issue 'q'.
  23.  
  24. def debug {
  25.     while 1 {
  26.         ask \%1 debug>
  27.         if eq \%1 q break
  28.         {\%1}
  29.     }
  30. }
  31.  
  32. A more elaborate C-Kermit debugger is on the drawing board, where break
  33. points can be set and removed, etc.
  34.  
  35. Dat
  36.  
  37.  
  38. Sent via Deja.com http://www.deja.com/
  39. Before you buy.